package com.atguigu.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * TODO
 *
 * @Description
 * @Author dubao
 * @Date 2023年 05月 27日 20:10
 **/
@RestController
public class PaymentController {

    @Value("${server.port}")
    private String serverPort;


    @RequestMapping("/payment/zk")
    public String paymentzk() {

        return "SpringCloud with zookeeper: " + serverPort + "\t" + UUID.randomUUID().toString().replace("-", "");
    }

}
